//////////////////////////////////////////////////////////////////////////
//
// HHeaven Studio Source File
//
// Name:   	Block.h
// Desc:		
// 	
// Author:  Kaiming
// Date:	2012/5/6
// Modify:	2012/5/6
// 
//////////////////////////////////////////////////////////////////////////

#ifndef _Block_h_
#define _Block_h_


#include "cocos2d.h"

enum EBlk_Color
{
	eBC_Red = 2,
	eBC_Blue = 3,
	eBC_Yellow = 4,
	eBC_Purple = 5,
	eBC_Orange = 6,
	eBC_Green = 7,
};

class CBlock
{
public:
	CBlock();
	virtual ~CBlock() {}

	void init();
	void destroy();
	void hide();
	void display();

	void changeColor(EBlk_Color color);
	void changeColor(int color);

	void setPos(const cocos2d::CCPoint& pos);


	EBlk_Color Color() const { return m_color; }
	void Color(EBlk_Color val) { m_color = val; }

	float BlockSize() const { return m_fBlockSize; }
	void BlockSize(float val) { m_fBlockSize = val; }

private:
	cocos2d::CCSprite* m_pSprite[6];
	EBlk_Color m_color;

	float m_fBlockSize;

};

#endif